FindIndicesWhere Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enumerates the indices of all the items in list that satisfy the condition defined by predicate.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static IEnumerable<int> FindIndicesWhere<T>(
	IList<T> list,
	Predicate<T> predicate
)
Visual Basic (Declaration)
Public Shared Function FindIndicesWhere(Of T) ( _
	list As IList(Of T), _
	predicate As Predicate(Of T) _
) As IEnumerable(Of Integer)
Visual C++
public:
generic<typename T>
static IEnumerable<int>^ FindIndicesWhere (
	IList<T>^ list, 
	Predicate<T>^ predicate
)

Parameters

list
IList<(Of <T>)>
The list to check all the items in.
predicate
Predicate<(Of <T>)>
A delegate that defines the condition to check for.

Return Value

An IEnumerable<T> that enumerates the indices of items that satisfy the condition.

Type Parameters

T

See Also